﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserAdd.aspx.cs" Inherits="BOH.ControlPanel.UserAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>

    <script>
//        $(document).ready(function() {
//            $("#drpUserType").change(UserTypeChange);
//            UserTypeChange();
//        });
        function SaveSuccess()
        {
            if(confirm("用户保存成功,您需要继续设置用户权限么？"))
            {
                window.location="UserAccessList.aspx";
            }
            else
            {
                window.location="UserList.aspx";
            }
        }
        
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">后台数据管理</a> >> 新增用户
    </div>
    <div id="bodyDiv">
        <center>
            <table width="90%" style="margin-top: 15px" class="Grid">
                <tr>
                    <td align="right" width="15%">用户ID</td>
                    <td align="left">&nbsp;<asp:TextBox ID="txtUserCode" runat="server" Width="150px"></asp:TextBox></td>
                    <td align="right" width="15%">
                        用&nbsp;户&nbsp;名&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtUserName" runat="server" Width="150px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="ARow">
                    
                    <td align="right" width="15%">
                        用户密码&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtPassword" runat="server" Width="150px" TextMode="Password"></asp:TextBox>
                        <asp:HiddenField ID="hidPassword" runat="server" />
                    </td>
                    <td align="right" width="15%">
                        用户状态&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:DropDownList ID="drpUserStatus" runat="server" Width="80">
                            <asp:ListItem Value="A">激活</asp:ListItem>
                            <asp:ListItem Value="D" Selected="True">未激活</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <%--<td align="right" width="15%">
                        用户名类型&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:DropDownList ID="drpUserType" runat="server" Width="150">
                                <asp:ListItem Value="A">系统管理员</asp:ListItem>
                                <asp:ListItem Value="C">中心用户组</asp:ListItem>
                                <asp:ListItem Value="G">主管局用户组</asp:ListItem>
                                <asp:ListItem Value="U">单位用户组</asp:ListItem>
                                <asp:ListItem Value="P">个人用户组</asp:ListItem>
                                <asp:ListItem Value="S">学科组管理员</asp:ListItem>
                                <asp:ListItem Value="Q">试题组管理员</asp:ListItem>
                        </asp:DropDownList>
                    </td>--%>
                    
                </tr>
                <tr class="ARow">
                    <td align="right" width="15%">
                        所&nbsp;属&nbsp;局&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:DropDownList ID="drpG" runat="server" Width="180px" AutoPostBack="True"
                            OnSelectedIndexChanged="drpG_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td align="right" width="15%">
                        所属单位&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:DropDownList ID="drpU" runat="server" Width="180px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="15%">
                        用户电话&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtPhone" runat="server" Width="150px"></asp:TextBox>
                    </td>
                    <td align="right" width="15%">
                        用户邮箱&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtMail" runat="server" Width="150px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <div style="text-align: center; margin-top: 10px;">
                <asp:Button ID="butSave" Text="保存" Width="150px" runat="server" OnClick="butSave_Click" />&nbsp;&nbsp;
                <asp:Button ID="butClear" Text="重置" Width="150px" runat="server"/>
                &nbsp;&nbsp;
                <input id="Button1" value="返回" type="button" style="width: 150px" onclick="javascript:window.location='UserList.aspx';" />
            </div>
        </center>
    </div>
    </form>
</body>
</html>
